import java.util.Scanner;
 class Triangle {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        try {
            System.out.print("请输入三角形的三边长（a, b, c）：");
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            int c = scanner.nextInt();
            checkTriangle(a, b, c);
            System.out.println("三角形的三边长是: " + a + ", " + b + ", " + c);
        } catch (IllegalArgumentException e) {
            System.out.println(e.getMessage());
        }
    }
    public static void checkTriangle(int a, int b, int c) {
        if (a + b <= c || a + c <= b || b + c <= a) {
            throw new IllegalArgumentException(a + ", " + b + ", " + c + " 不能构成三角形");
        }
    }
}